package com.example.shop.fgo.sp;

import com.example.shop.fgo.base.YBaseApp;
import com.example.shop.library.util.SharedPrefrencesUtil;

/**
 * Created by Administrator on 2017/2/7.
 */

public class LoginSP {
    public static void saveUsername(String username){
        SharedPrefrencesUtil.saveData(YBaseApp.mContextGlobal,"login","username",username);
    }
    public static String getUsername(){
        return SharedPrefrencesUtil.getData(YBaseApp.mContextGlobal,"login","username","");
    }
    public static void saveUsepwd(String userpwd){
        SharedPrefrencesUtil.saveData(YBaseApp.mContextGlobal,"login","userpwd",userpwd);
    }
    public static String getUsepwd(){
        return SharedPrefrencesUtil.getData(YBaseApp.mContextGlobal,"login","userpwd","");
    }
}
